<template>
	<view class="warp">
		<u-navbar :title="title"></u-navbar>
		<view class="content"><u-parse :html="content"></u-parse></view>
	</view>
</template>

<script>
	import {getXieyi} from "@/common/api.js";
	export default {
		data() {
			return {
				title:"",
				content: ""
			}
		},
		onLoad(options) {
			if(options.index==1){
				this.title="YTHeart用户协议";
			}else{
				this.title="YTHeart隐私协议"
			}
			getXieyi(this,{type:options.index});
		},
		methods: {
			
		}
	}
</script>

<style>
	page{
		font-family: PingFang SC;
		background: #F6F6F6;
	}
	.warp{
		padding: 20rpx 40rpx;
	}
	.content{
		margin-top: 20rpx;
	}
</style>
